Http://www.2cto.com/kf/201206/135471.htmlHTTP protocol and status hold The HTTP protocol itself is stateless, which is consistent with the HTTP protocol's original purpose, the client simply needs to request to the server to download some files,
Session_Start () creates a new session or reuses existing sessions. If you submit a session ID by either a GET or POST, or by using a cookie, the existing session is reused.
The session_start() session Manager's open and read callback functions are
In ASP. NET programming, there are three common data sources from the client: querystring, form, and cookie. We can access these three objects in httprequest. For example, we can get some parameters contained in the URL from querystring and get the
ASP tutorial. NET HTTP Get cookies
Cookies, sometimes in their plural form, are the data (usually encrypted) that some Web sites store on the user's local terminal in order to identify the user and perform session tracking. defined in rfc2109
Application
1. The application is used to save information shared by all users.
2. In the ASP era, if the data to be stored does not or rarely change during the lifetime of the application, application is the ideal choice. However, in the Asp.net
It is not easy to create a complete website through node. js. This involves reading the Page Template and extracting data from the database to build a new page and return it to the client. But this is not the case. We still need to set the header.
ASP. NET status management application, session, cookie, and viewstat usage
In ASP. NET, there are many built-in objects for saving information, such as application, session, Cookie, viewstate and cache. The following describes their usage and
In ASP. NET, there are many built-in objects for saving information, such as application, session, Cookie, viewstate and cache. The following describes their usage and differences.
Method
Information size
Scope and storage time
========================================================== ==========================================================
1. Application: Used to save data shared by all users. Similar configuration data in Asp. Net is best stored in the Web. config
read/Set expiry time for current cacheIntSession_cache_expire([string $new _cache_expire])When the request starts, the cache expiration time is reset to 180 minutes and is saved in the Session.cache_expire configuration item. Therefore, for each
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.